﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace ArgusLib.BugReport
{
	public class ExceptionInfo
	{
		private ExceptionInfo() { }

		public string HelpLink { get; private set; }
		public ExceptionInfo InnerException { get; private set; }
		public string Message { get; private set; }
		public string Source { get; private set; }
		public string StackTrace { get; private set; }
		public ExceptionInfo(Exception exception)
		{
			this.HelpLink = exception.HelpLink;
			if (exception.InnerException != null)
				this.InnerException = new ExceptionInfo(exception.InnerException);
			this.Message = exception.Message;
			this.Source = exception.Source;
			this.StackTrace = exception.StackTrace;
		}
	}
}
